package com.mmall.dto;

import com.google.common.collect.Lists;
import com.mmall.model.SysDept;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.beans.BeanUtils;

import java.util.List;

/**
 * Created by pc on 2019/3/29.
 */
@Getter
@Setter
@ToString
public class DeptLeveDto extends SysDept{
    private List<DeptLeveDto> deptList = Lists.newArrayList();

    public static DeptLeveDto adpt(SysDept sysDept){
        DeptLeveDto dto = new DeptLeveDto();
        BeanUtils.copyProperties(sysDept,dto);
        return dto;
    }
}
